package com.wenfs.demo.dao;

import com.wenfs.demo.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author wefashe
 */
public interface SysRoleMapper {
    int deleteByPrimaryKey(String rodeId);

    int save(SysRole role);

    SysRole selectByPrimaryKey(String rodeId);

    List<SysRole> findAll();

    int updateByPrimaryKey(SysRole record);

    Set<String> getRoleCodesByUserCode(String userCode);

    Integer getMaxCode();

    void setStatus(@Param("status") Integer status, @Param("roleCode") String roleCode);

//    void setPermsToRole(List<Map<String,String>> list);
}